package Mediator;

import java.util.Date;

public class ChatRoom {

    /*
        调用时, 直接通过 ChatRoom.showMessage(user, message) 不用实例变量的静态方法调用.
     */

    public static void showMessage(User user, String message){
        System.out.println(new Date().toString() + " [ " + user.getName() + " ] " + message);
    }
}
